package com.xszx.service.impl;

import com.xszx.bean.*;
import com.xszx.dao.ManaDao;
import com.xszx.service.ManaService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * @author MarFloral
 * @date 2022/12/9 13:47
 */
@Service
public class ManaServiceImpl implements ManaService {
    @Autowired
    ManaDao manaDao;

    @Override
    public List<EmpBasicInfo> selectEmpInfo() {
        return manaDao.selectEmpInfo();
    }

    @Override
    public List<EmpBasicInfo> selectEmpByNo(String empNo) {
        return manaDao.selectEmpByNo(empNo);
    }

    @Override
    public int addEmp(EmpInfo empInfo) {
        return manaDao.addEmp(empInfo);
    }

    @Override
    public int updateEmp(EmpInfo empInfo) {
        return manaDao.updateEmp(empInfo);
    }

    @Override
    public int deleteEmpInfo(int id) {
        return manaDao.deleteEmpInfo(id);
    }

    @Override
    public int selectSameInsurance(Map<String, Object> map) {
        return manaDao.selectSameInsurance(map);
    }

    @Override
    public int addInsurance(Insurance insurance) {
        return manaDao.addInsurance(insurance);
    }

    @Override
    public List<Insurance> selectAllInsurance(Map<String, Object> map) {
        return manaDao.selectAllInsurance(map);
    }

    @Override
    public int selectInsuranceCount() {
        return manaDao.selectInsuranceCount();
    }

    @Override
    public int deleteInsurance(int id) {
        return manaDao.deleteInsurance(id);
    }

    @Override
    public int updateInsurance(Insurance insurance) {
        return manaDao.updateInsurance(insurance);
    }

    @Override
    public List<Insurance> selectInsuranceByEmpNo(String empNo) {
        return manaDao.selectInsuranceByEmpNo(empNo);
    }

    @Override
    public List<DepInfo> selectDepInfo() {
        return manaDao.selectDepInfo();
    }

    @Override
    public int addDep(DepInfo depInfo) {
        return manaDao.addDep(depInfo);
    }

    @Override
    public int updateDep(DepInfo depInfo) {
        return manaDao.updateDep(depInfo);
    }

    @Override
    public List<DepPosition> selectDepPosition(Map<String, Object> map) {
        return manaDao.selectDepPosition(map);
    }

    @Override
    public int selectDepPositionCount() {
        return manaDao.selectDepPositionCount();
    }

    @Override
    public int selectSamePosition(String position) {
        return manaDao.selectSamePosition(position);
    }

    @Override
    public int addDepPosition(DepPosition depPosition) {
        return manaDao.addDepPosition(depPosition);
    }

    @Override
    public int editDepPosition(DepPosition depPosition) {
        return manaDao.editDepPosition(depPosition);
    }

    @Override
    public int selectPositionNum(int id) {
        return manaDao.selectPositionNum(id);
    }

    @Override
    public int deleteDepPosition(int id) {
        return manaDao.deleteDepPosition(id);
    }

    @Override
    public List<UserAttendance> selectAllAttendance(Map<String, Integer> map) {
        return manaDao.selectAllAttendance(map);
    }

    @Override
    public int selectAttdanceCount() {
        return manaDao.selectAttdanceCount();
    }

    @Override
    public int updateAttendance(UserAttendance userAttendance) {
        return manaDao.updateAttendance(userAttendance);
    }

    @Override
    public List<UserAttendance> searchAttendanceByKeyWord(Map<String, Object> map) {
        return manaDao.searchAttendanceByKeyWord(map);
    }

    @Override
    public List<UserVocate> selectAllVacate() {
        return manaDao.selectAllVacate();
    }

    @Override
    public List<UserVocate> selectVacateByKeyWord(String empNo) {
        return manaDao.selectVacateByKeyWord(empNo);
    }

    @Override
    public int updateVacate(UserVocate userVocate) {
        return manaDao.updateVacate(userVocate);
    }

    @Override
    public int deleteVacate(int id) {
        return manaDao.deleteVacate(id);
    }

    @Override
    public int selectWageCount() {
        return manaDao.selectWageCount();
    }

    @Override
    public List<Wage> selectAllWages(Map<String, Object> map) {
        return manaDao.selectAllWages(map);
    }

    @Override
    public List<Wage> selectWageByKeyWord(Map<String, Object> map) {
        return manaDao.selectWageByKeyWord(map);
    }

    @Override
    public int deleteWages(int id) {
        return manaDao.deleteWages(id);
    }

    @Override
    public int addWages(Wage wage) {
        return manaDao.addWages(wage);
    }

    @Override
    public int updateWages(Wage wage) {
        return manaDao.updateWages(wage);
    }

    @Override
    public List<Wage> selectThisMonthWages(Map<String, Object> map) {
        return manaDao.selectThisMonthWages(map);
    }

    @Override
    public int selectEmpCount() {
        return manaDao.selectEmpCount();
    }

    @Override
    public List selectWagesByMonth(String month) {
        return manaDao.selectWagesByMonth(month);
    }

    @Override
    public void addCheckedWages(Wage wage) {
        manaDao.addCheckedWages(wage);
    }

    @Override
    public void deleteCheckedWages(int id) {
        manaDao.deleteCheckedWages(id);
    }

    @Override
    public List<Position> selectOpenPosition() {
        return manaDao.selectOpenPosition();
    }

    @Override
    public List<Memo> selectMemoByEmpNo(String empNo) {
        return manaDao.selectMemoByEmpNo(empNo);
    }

    @Override
    public int deleteMemo(int id) {
        return manaDao.deleteMemo(id);
    }

    @Override
    public List<AddressList> selectAddressList() {
        return manaDao.selectAddressList();
    }

    @Override
    public List<AddressList> selectAddressListByKeyWord(String likeEmpNo) {
        return manaDao.selectAddressListByKeyWord(likeEmpNo);
    }
}
